home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / BoxPaint / Resources / BoxPaint.r < prev    next >
Text File  |  1997-09-08  |  4KB  |  160 lines

  1. /*
  2.  *  File:       BoxPaint.r
  3.  *  Summary:       BoxPaint resources
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <->     2/06/97    JDJ        Created
  12.  */
  13.  
  14. #include <BalloonTypes.r>
  15. #include <RavenTypes.r>
  16.  
  17.  
  18. // Note that resource ids below 256 are reserved for Raven.
  19.  
  20. // ===================================================================================
  21. //    Finder Icon Help Message 
  22. // ===================================================================================
  23. resource 'hfdr' (-5696, "Finder Help") {
  24.     HelpMgrVersion,
  25.     hmDefaultOptions,
  26.     0, 0,
  27.     
  28.     {
  29.         HMStringItem {
  30.             "This is one of the Raven example applications. It allows you to paint on a QuickDraw 3D object."
  31.         },
  32.     }
  33. };
  34.  
  35.  
  36. // ===================================================================================
  37. //    MenuBar
  38. // ===================================================================================
  39. resource 'MBAR' (256) {
  40.     {
  41.         256,        // Apple
  42.         257,        // File
  43.         258,        // Edit
  44.         259,        // Texture Resolution
  45.         260,        // Renderer
  46.     }
  47. };
  48.  
  49.  
  50. // ===================================================================================
  51. //    Menus
  52. // ===================================================================================
  53.  
  54. // Apple Menu
  55. resource 'MENU' (256, "Apple") {
  56.     256, textMenuProc, allEnabled, enabled, apple,
  57.     {
  58.         "About BoxPaintノ",            noIcon, noKey,    noMark, plain,
  59.     }
  60. };
  61.  
  62. resource 'Rcmd' (256, "Apple") { {
  63.     "about",            // About BoxPaintノ
  64. } };
  65.  
  66.  
  67. // File Menu
  68. resource 'MENU' (257, "File") {
  69.     257, textMenuProc, allEnabled, enabled, "File",
  70.     {
  71.         "New",            noIcon, "N",    noMark, plain,
  72.         "Openノ",        noIcon, "O",    noMark, plain,
  73.         "-",            noIcon, noKey,    noMark, plain,
  74.         "Close",        noIcon, "W",    noMark, plain,
  75.         "Save",            noIcon, "S",    noMark, plain,
  76.         "Save Asノ",        noIcon, noKey,    noMark, plain,
  77.         "Revert",        noIcon, noKey,    noMark, plain,
  78.         "-",            noIcon, noKey,    noMark, plain,
  79.         "Quit",            noIcon, "Q",    noMark, plain,
  80.     }
  81. };
  82.  
  83. resource 'Rcmd' (257, "File") { {
  84.     "new",                // New
  85.     "open",                // Open
  86.     "nothing",            // -
  87.     "close",            // Close
  88.     "save",                // Save
  89.     "save as",            // Save Asノ
  90.     "revert",            // Revert
  91.     "nothing",            // -
  92.     "quit",                // Quit
  93. } };
  94.  
  95.  
  96. // Edit Menu
  97. resource 'MENU' (258, "Edit") {
  98.     258, textMenuProc, allEnabled, enabled, "Edit",
  99.     {
  100.         "Undo",            noIcon, "Z",    noMark, plain,
  101.         "Redo",            noIcon, "R",    noMark, plain,
  102.         "-",            noIcon, noKey,    noMark, plain,
  103.         "Cut",            noIcon, "X",    noMark, plain,
  104.         "Copy",            noIcon, "C",    noMark, plain,
  105.         "Paste",        noIcon, "V",    noMark, plain,
  106.         "Clear",        noIcon, noKey,    noMark, plain,
  107.     }
  108. };
  109.  
  110. resource 'Rcmd' (258, "Edit") { {
  111.     "undo",                // Undo
  112.     "redo",                // Redo
  113.     "nothing",            // -
  114.     "cut",                // Cut
  115.     "copy",                // Copy
  116.     "paste",            // Paste
  117.     "clear",            // Clear
  118. } };
  119.  
  120.  
  121. // Texture Resolution Menu
  122. resource 'MENU' (259, "Texture Resolution") {
  123.     259, textMenuProc, allEnabled, enabled, "TextureResolution",
  124.     {
  125.         "64x64",        noIcon, noKey,    noMark, plain,
  126.         "128x128",        noIcon, noKey,    noMark, plain,
  127.         "256x256",        noIcon, noKey,    noMark, plain,
  128.     }
  129. };
  130.  
  131. resource 'Rcmd' (259, "Texture Resolution") { {
  132.     "64x64",            // 64x64
  133.     "128x128",            // 128x128
  134.     "256x256",            // 256x256
  135. } };
  136.  
  137.  
  138. // Renderer Menu
  139. resource 'MENU' (260, "Renderer") {
  140.     260, textMenuProc, allEnabled, enabled, "Renderer",
  141.     {
  142.         "Software",        noIcon, noKey,    noMark, plain,
  143.         "Hardware",        noIcon, noKey,    noMark, plain,
  144.         "-",            noIcon, noKey,    noMark, plain,
  145.         "Best",            noIcon, noKey,    noMark, plain,
  146.     }
  147. };
  148.  
  149. resource 'Rcmd' (260, "Renderer") { {
  150.     "Software Renderer",    // Software
  151.     "Hardware Renderer",    // Hardware
  152.     "nothing",                // -
  153.     "Best Renderer",        // Best
  154. } };
  155.  
  156.  
  157.  
  158.  
  159.  
  160.